package Demo;

public class Animal {
	
	private String name;
	private int age;
	private int legs;
	
	public void setLegs(int legs){
		this.legs = legs;
	}
	
	public int getLegs(){
		
		return legs;
		
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setAge(int age) {
		this.age = age;
	}
	
	public int getAge() {
		return age;
	}
}
